import { Module } from '@nestjs/common';
import { config } from '../../config';
import * as TelegramBot from 'node-telegram-bot-api';

@Module({
	providers: [
		{
			provide: 'TelegramBot',
			useFactory: () => {
				return new TelegramBot(config.telegram.token);
			},
		},
	],
	exports: ['TelegramBot'],
})
export class TelegramBotModule {}
